﻿namespace CommonData.Entity
{
    using System;

    [Serializable]
    public class CommonPage : BaseEntity
    {
        private string _content;
        private int _pageCount;
        private int _pageIndex;
        private int _pageSize;
        private int _total;

        public CommonPage()
        {
            this._pageIndex = 1;
            this._pageCount = 0;
            this._pageSize = 5;
            this._total = 0;
        }

        public CommonPage(int pageIndex, int pageCount, int pageSize, int total, string content)
        {
            this._pageIndex = 1;
            this._pageCount = 0;
            this._pageSize = 5;
            this._total = 0;
            this._pageIndex = this.PageIndex;
            this._pageCount = pageCount;
            this._pageSize = this.PageSize;
            this._total = total;
            this._content = content;
        }

        public string Content
        {
            get
            {
                return this._content;
            }
            set
            {
                this._content = value;
            }
        }

        public int PageCount
        {
            get
            {
                return this._pageCount;
            }
            set
            {
                this._pageCount = value;
            }
        }

        public int PageIndex
        {
            get
            {
                return this._pageIndex;
            }
            set
            {
                this._pageIndex = value;
            }
        }

        public int PageSize
        {
            get
            {
                return this._pageSize;
            }
            set
            {
                this._pageSize = value;
            }
        }

        public int Total
        {
            get
            {
                return this._total;
            }
            set
            {
                this._total = value;
            }
        }
    }
}

